﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RATSharp.Collection;
using RATSharp.Model;
using RATSharp.Rest;
using System.Threading.Tasks;

namespace RATSharp.Cal
{
    class CalendarUserDataProvider : AbstractCalendarDataProvider
    {

        public CalendarUserDataProvider(RestService service, int month, int year)
        {
            this.month = month;
            this.year = year;
            this.service = service;
        }

        protected override Task<Reservations> getTask(DateTime firstDayInMonth, DateTime LastDayInMonth)
        {
            return service.getReservationsByUserAsync(firstDayInMonth, LastDayInMonth);
        }
    }
}
